package chapter11;

public class Day2 {
    public static void main(String[] args) {
        int arr[] = new int[31];
        arr[0] = 1;
        for (int i = 1; i < arr.length; i++) {
            for (int j = 0; j < i; j++) {
                arr[i] = arr[i - 1] * 2;
            }
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}